package com.micro.shop.model;

import java.io.Serializable;

public class OrderPeerpay implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : id
     */
    private Integer id;

    /**
     * 添加时间
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : dateline
     */
    private Integer dateline;

    /**
     * 订单表ID
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : order_id
     */
    private Integer orderId;

    /**
     * 代支付订单号，格式：PEERPAY_生成另外订单号
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : peerpay_no
     */
    private String peerpayNo;

    /**
     * 支付金额
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : money
     */
    private Float money;

    /**
     * 支付人姓名
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : name
     */
    private String name;

    /**
     * 支付人留言
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : content
     */
    private String content;

    /**
     * 支付时间
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : pay_dateline
     */
    private Integer payDateline;

    /**
     * 第三方支付ID
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : third_id
     */
    private String thirdId;

    /**
     * 支付状态，0：未支付，1：已支付
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : status
     */
    private Integer status;

    /**
     * 退回金额
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : untread_money
     */
    private Float untreadMoney;

    /**
     * 退回时间
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : untread_dateline
     */
    private Integer untreadDateline;

    /**
     * 退回申请说明
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : untread_content
     */
    private String untreadContent;

    /**
     * 退回状态，0：未完成，1：已完成
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : untread_status
     */
    private Integer untreadStatus;

    /**
     * 第三方支付返回内容
     * 表 : bestfenxiao_order_peerpay
     * 对应字段 : third_data
     */
    private String thirdData;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_order_peerpay
     *
     * @mbggenerated Mon Apr 23 22:23:43 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.id：
     */
    public Integer getId() {
        return id;
    }

    /**
     * set method 
     *
     * @param id  
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.dateline：添加时间
     */
    public Integer getDateline() {
        return dateline;
    }

    /**
     * set method 
     *
     * @param dateline  添加时间
     */
    public void setDateline(Integer dateline) {
        this.dateline = dateline;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.order_id：订单表ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * set method 
     *
     * @param orderId  订单表ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.peerpay_no：代支付订单号，格式：PEERPAY_生成另外订单号
     */
    public String getPeerpayNo() {
        return peerpayNo;
    }

    /**
     * set method 
     *
     * @param peerpayNo  代支付订单号，格式：PEERPAY_生成另外订单号
     */
    public void setPeerpayNo(String peerpayNo) {
        this.peerpayNo = peerpayNo == null ? null : peerpayNo.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.money：支付金额
     */
    public Float getMoney() {
        return money;
    }

    /**
     * set method 
     *
     * @param money  支付金额
     */
    public void setMoney(Float money) {
        this.money = money;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.name：支付人姓名
     */
    public String getName() {
        return name;
    }

    /**
     * set method 
     *
     * @param name  支付人姓名
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.content：支付人留言
     */
    public String getContent() {
        return content;
    }

    /**
     * set method 
     *
     * @param content  支付人留言
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.pay_dateline：支付时间
     */
    public Integer getPayDateline() {
        return payDateline;
    }

    /**
     * set method 
     *
     * @param payDateline  支付时间
     */
    public void setPayDateline(Integer payDateline) {
        this.payDateline = payDateline;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.third_id：第三方支付ID
     */
    public String getThirdId() {
        return thirdId;
    }

    /**
     * set method 
     *
     * @param thirdId  第三方支付ID
     */
    public void setThirdId(String thirdId) {
        this.thirdId = thirdId == null ? null : thirdId.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.status：支付状态，0：未支付，1：已支付
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * set method 
     *
     * @param status  支付状态，0：未支付，1：已支付
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.untread_money：退回金额
     */
    public Float getUntreadMoney() {
        return untreadMoney;
    }

    /**
     * set method 
     *
     * @param untreadMoney  退回金额
     */
    public void setUntreadMoney(Float untreadMoney) {
        this.untreadMoney = untreadMoney;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.untread_dateline：退回时间
     */
    public Integer getUntreadDateline() {
        return untreadDateline;
    }

    /**
     * set method 
     *
     * @param untreadDateline  退回时间
     */
    public void setUntreadDateline(Integer untreadDateline) {
        this.untreadDateline = untreadDateline;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.untread_content：退回申请说明
     */
    public String getUntreadContent() {
        return untreadContent;
    }

    /**
     * set method 
     *
     * @param untreadContent  退回申请说明
     */
    public void setUntreadContent(String untreadContent) {
        this.untreadContent = untreadContent == null ? null : untreadContent.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.untread_status：退回状态，0：未完成，1：已完成
     */
    public Integer getUntreadStatus() {
        return untreadStatus;
    }

    /**
     * set method 
     *
     * @param untreadStatus  退回状态，0：未完成，1：已完成
     */
    public void setUntreadStatus(Integer untreadStatus) {
        this.untreadStatus = untreadStatus;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_peerpay.third_data：第三方支付返回内容
     */
    public String getThirdData() {
        return thirdData;
    }

    /**
     * set method 
     *
     * @param thirdData  第三方支付返回内容
     */
    public void setThirdData(String thirdData) {
        this.thirdData = thirdData == null ? null : thirdData.trim();
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderPeerpay other = (OrderPeerpay) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDateline() == null ? other.getDateline() == null : this.getDateline().equals(other.getDateline()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getPeerpayNo() == null ? other.getPeerpayNo() == null : this.getPeerpayNo().equals(other.getPeerpayNo()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getPayDateline() == null ? other.getPayDateline() == null : this.getPayDateline().equals(other.getPayDateline()))
            && (this.getThirdId() == null ? other.getThirdId() == null : this.getThirdId().equals(other.getThirdId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUntreadMoney() == null ? other.getUntreadMoney() == null : this.getUntreadMoney().equals(other.getUntreadMoney()))
            && (this.getUntreadDateline() == null ? other.getUntreadDateline() == null : this.getUntreadDateline().equals(other.getUntreadDateline()))
            && (this.getUntreadContent() == null ? other.getUntreadContent() == null : this.getUntreadContent().equals(other.getUntreadContent()))
            && (this.getUntreadStatus() == null ? other.getUntreadStatus() == null : this.getUntreadStatus().equals(other.getUntreadStatus()))
            && (this.getThirdData() == null ? other.getThirdData() == null : this.getThirdData().equals(other.getThirdData()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDateline() == null) ? 0 : getDateline().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getPeerpayNo() == null) ? 0 : getPeerpayNo().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getPayDateline() == null) ? 0 : getPayDateline().hashCode());
        result = prime * result + ((getThirdId() == null) ? 0 : getThirdId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUntreadMoney() == null) ? 0 : getUntreadMoney().hashCode());
        result = prime * result + ((getUntreadDateline() == null) ? 0 : getUntreadDateline().hashCode());
        result = prime * result + ((getUntreadContent() == null) ? 0 : getUntreadContent().hashCode());
        result = prime * result + ((getUntreadStatus() == null) ? 0 : getUntreadStatus().hashCode());
        result = prime * result + ((getThirdData() == null) ? 0 : getThirdData().hashCode());
        return result;
    }
}